/**
 * 请求成功状态码
 */
export const SUCCESS_CODE: number = 0;

/**
 * 请求超时时间
 */
export const REQUEST_TIMEOUT: number = 60000;

/**
 * 请求头 key
 */
export const HEADERS: { [key: string]: AxiosHeaders } = {
  CONTENT_TYPE: "Content-Type",
  AUTHORIZATION: "Authorization",
};

/**
 * 请求方法
 */
export const METHOD: { [key: string]: AxiosMethod } = {
  GET: "get",
  POST: "post",
  PUT: "put",
  DELETE: "delete",
};

/**
 * 请求内容类型
 */
export const CONTENT_TYPE: { [key: string]: AxiosContentType } = {
  JSON: "application/json",
  FORM_DATA: "multipart/form-data",
  FORM_URLENCODED: "application/x-www-form-urlencoded",
  TEXT: "text/plain",
};
